package com.hyperf.core.lock;

import com.hyperf.core.lock.exception.LockException;

/**
 * @author lizhaoyang
 */
public interface LockFailureStrategy {
    /**
     * 锁失败事件
     *
     * @param lockKey        锁key
     * @param acquireTimeout 尝试获取锁超时时间(ms)
     * @param acquireCount   获取锁次数
     */
    void onLockFailure(String lockKey, long acquireTimeout, int acquireCount) throws LockException;
}
